//常量路由
const constanRoute = [
  //首页
  {
    path: '/',
    component: () => import('@/Layout/index.vue'),
    name: 'layout',
    meta: { isShow: true },
    redirect: '/home',
    children: [
      {
        path: '/home',
        component: () => import('@/views/Home/index.vue'),
        name: 'Home',
        meta: { title: '首页', isShow: true, icon: 'HomeFilled' },
      },
    ],
  },
  //数据大屏
  {
    path: '/screen',
    component: () => import('@/views/Screen/index.vue'),
    name: 'Screen',
    meta: { title: '数据大屏', isShow: true, icon: 'Platform' },
  },
   //权限管理
  {
    path: '/acl',
    component: () => import('@/Layout/index.vue'),
    name: 'Acl',
    meta: { title: '权限管理', isShow: true, icon: 'Lock' },
    redirect: '/acl/user',
    children: [
      {
        path: '/acl/user',
        component: () => import('@/views/ACl/User/index.vue'),
        name: 'User',
        meta: { title: '用户管理', isShow: true, icon: 'User' },
      },
      {
        path: '/acl/role',
        component: () => import('@/views/ACl/Role/index.vue'),
        name: 'Role',
        meta: { title: '角色管理', isShow: true, icon: 'UserFilled' },
      },
      {
        path: '/acl/permission',
        component: () => import('@/views/ACl/Permission/index.vue'),
        name: 'Permission',
        meta: { title: '菜单管理', isShow: true, icon: 'Monitor' },
      },
    ],
  },
  //商品管理
  {
    path: '/product',
    component: () => import('@/Layout/index.vue'),
    name: 'Product',
    meta: { title: '商品管理', isShow: true, icon: 'Goods' },
    redirect: '/product/trademark',
    children: [
      {
        path: '/product/trademark',
        component: () => import('@/views/Product/Trademark/index.vue'),
        name: 'Trademark',
        meta: { title: '品牌管理', isShow: true, icon: 'ShoppingCartFull' },
      },
      {
        path: '/product/attr',
        component: () => import('@/views/Product/Attr/index.vue'),
        name: 'Attr',
        meta: { title: '属性管理', isShow: true, icon: 'ChromeFilled' },
      },
      {
        path: '/product/spu',
        component: () => import('@/views/Product/Spu/index.vue'),
        name: 'Spu',
        meta: { title: 'Spu管理', isShow: true, icon: 'Calendar' },
      },
      {
        path: '/product/sku',
        component: () => import('@/views/Product/Sku/index.vue'),
        name: 'Sku',
        meta: { title: 'Sku管理', isShow: true, icon: 'Orange' },
      },
    ],
  },
  //登录
  {
    path: '/login',
    component: () => import('@/views/Login/index.vue'),
    name: 'login',
    meta: { title: '登录', isShow: false },
  },
  // 404
  {
    path: '/404',
    component: () => import('@/views/404/index.vue'),
    name: '404',
    meta: { title: '404', isShow: false },
  },
   // 任意404
  {
    path: '/:pathMatch(.*)*',
    redirect: '/404',
    name: 'notFound',
    meta: { title: '任意路由', isShow: false },
  },
]

export default constanRoute

//动态异步路由
export const asyncRoute = [
 
]

//任意路由
export const anyRoute = [
 
]
